<?php foreach (jfJQMAmobeeAds::getConfig('preloadJavascripts', array()) as $preloadScript): ?>
  <script src="<?php echo $preloadScript ?>"></script>
<?php endforeach; ?>
<script>
if (window.jfJQMAmobeeAds) {
  jfJQMAmobeeAds.setConfig('preloadJavascripts', <?php echo json_encode(jfJQMAmobeeAds::getConfig('preloadJavascripts', array())) ?>);
}
</script>